#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>  
int main(void){
	int i, sum, isnan = 0;
	char op = '0';
	scanf("%d", &sum);
	while ((op = getchar()) != '='){
		if (op == '='){
			break;
		}
		scanf("%d", &i);
		if (op == '+')
			sum = sum + i;
		else if (op == '-')
			sum = sum - i;
		else if (op == '*')
			sum = sum*i;
		else if (op == '/'){
			if (i != 0)
				sum = sum / i;
			else
				isnan = 1;
		}
		else{
			isnan = 1;
		}
	}
	if (isnan == 1)
		printf("ERROR");
	else
		printf("%d\n", sum);
	return 0;
}